/* 商品页面布局 */
.products-page {
    margin-top: 60px;
    padding: 20px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
}

/* 页面布局 */
.products-container {
    width: 100%;
}

/* 商品内容区域 */
.products-content.full-width {
    width: 100%;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px 0;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* 图片占位符 */
.placeholder-img {
    width: 100%;
    padding-top: 100%;
    background: #f5f5f5;
    position: relative;
}

.placeholder-img::after {
    content: '暂无图片';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

/* 商品信息 */
.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-price {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: bold;
}

.sales {
    font-size: 12px;
    color: #999;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 分页器 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.pagination button:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
    }

    .products-grid.grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .products-grid.list .product-card {
        grid-template-columns: 120px 1fr;
    }
} 

/* 促销banner */
.promo-banner {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-item {
    position: relative;
    height: 180px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* 快捷筛选标签 */
.quick-filter {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-btn {
    padding: 6px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-btn.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.tag-btn .count {
    margin-left: 5px;
    font-size: 12px;
    color: #999;
}

.selected-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: #666;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.filter-tag i {
    margin-left: 5px;
    cursor: pointer;
}

/* 商品卡片样式优化 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.shop-tag {
    background: #ff6b6b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.btn-follow {
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 200px;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-img img:hover {
    transform: scale(1.05);
}

.placeholder-img::after {
    content: '暂无图片';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
}

.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-card:hover .hover-info {
    transform: translateY(0);
}

.product-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.product-tags .tag {
    background: #fff5f5;
    color: #ff6b6b;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-actions button {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-preview {
    background: #fff;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.btn-buy {
    background: #ff6b6b;
    color: #fff;
}

.product-info {
    padding: 15px;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-tag {
    background: #ff6b6b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
}

.desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.current-price {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.discount {
    color: #ff6b6b;
    font-size: 12px;
    border: 1px solid #ff6b6b;
    padding: 0 4px;
    border-radius: 2px;
}

.sales-info {
    font-size: 12px;
    color: #999;
}

.rating {
    margin-left: 10px;
}

.rating i {
    color: #ffd700;
}

.shop-info {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.shop-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.shop-detail {
    overflow: hidden;
}

.shop-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.shop-rating {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.btn-enter-shop {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
}

.btn-enter-shop:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
} 

/* 头部样式补充 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: #ff6b6b;
    font-size: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    width: 400px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 16px;
    background: #ff6b6b;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
}

.cart-item {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
} 